﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using WeifenLuo.WinFormsUI.Docking;
using System.Windows.Forms;

namespace LiveSequence.Suite.Helpers
{
  public class FormHelper
  {
    static public Frame CreateDockContent(string strDockContentText, UserControl control)
    {
      return CreateDockContent(strDockContentText, control, null);
    }

    static public Frame CreateDockContent(string strDockContentText, UserControl control, Icon icon)
    {
      Frame dc = new Frame();
      dc.Icon = icon;
      control.Dock = DockStyle.Fill;
      dc.Controls.Add(control);
      dc.Text = strDockContentText;
      return dc;
    }

  }
}
